﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Web.Mvc;

namespace Peninsula.DataAccess.POCO
{
   [Table("MaintenanceStaff")]
   public  class MaintenanceStaff:BaseEntity
    {
        [StringLength(50)]
        [DisplayName("所属店面")]
        public string StoreId { get; set; }

        [ForeignKey("StoreId")]
        public virtual Store Store { get; set; }

        [NotMapped]
        public List<SelectListItem> Stores { get; set; }

        [StringLength(50)]
        [DisplayName("擅修类型")]
        public string ItemTypeId { get; set; }

        [ForeignKey("ItemTypeId")]
        public virtual ItemType ItemType { get; set; }

        [NotMapped]
        public List<SelectListItem> ItemTypes { get; set; }
    }
}
